<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 195px;
}

.select_width {
	width: 130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
 <div class="t_bar">基本信息</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td align="right" colspan="1">
			<span class="color_red">*</span>项目名称：
		</td>
		<td colspan="3">
			<input id="zh_title" name="proposal/zh_title"
			label="项目名称" type="text" required
			class="input_css required maxlength:100" style="width:80%;"
			maxlength="100"
			value="<x:out select="$xmlData/data/proposal/zh_title" />" />
		</td>
	</tr>
	<tr>	
		<td align="right" colspan="1">
			<span class="color_red">*</span>申请单位（人）名称：
		</td>
		<td colspan="1">
			<input name="proposal/prp_name"
			label="申请单位（人）名称" type="text" required
			class="input_css required maxlength:100" style="width:80%;"
			maxlength="100"
			value="<x:out select="$xmlData/data/proposal/prp_name" />" />
		</td>
		<td align="right" colspan="1">
			<span class="color_red">*</span>申请时间：
		</td>
		<td colspan="1">
			<c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set><cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}" className="required date" label="申请时间"></cpt:date>&nbsp;
		</td> 
	</tr>
	<tr>
		<td align="right">
			<span class="color_red">*</span>项目所属类别：
		</td>
		<td nowrap  colspan="3" valign="middle">
			<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="granttype" label="年度贡献奖" value="01" /><span style="vertical-align: middle;">年度贡献奖</span></label> 
			<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="granttype" label="金融改革与创新奖" value="02" /><span style="vertical-align: middle;">金融改革与创新奖</span></label> 
			<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="granttype" label="金融机构和人才引进奖" value="03" /><span style="vertical-align: middle;">金融机构和人才引进奖</span></label>
			<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="granttype" label="推进上市奖" value="03" /><span style="vertical-align: middle;">推进上市奖</span></label>
			<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="granttype" label="金融环境奖" value="03" /><span style="vertical-align: middle;">金融环境奖</span></label>
			<input type="hidden" name="proposal/granttype_value" id="granttype_value" class="required" value="<x:out select="$xmlData/data/proposal/granttype_value" />" label="项目所属类别" /> 
			<input type="hidden" name="proposal/granttype_name" id="granttype_name" value="<x:out select="$xmlData/data/proposal/granttype_name" />" label="项目所属类别" />
		</td>
	</tr>
	<tr>
		<td align="right" nowrap>
			<span class="color_red">*</span>申请金额（万元）：
		</td>
		<td colspan="3">
			<input  name="proposal/prp_funds" id="prp_funds"
			 style="text-align: right;" onfocus="InitInput.setNumber(this,9,4,2)"
		    label="申请金额" type="text" class="input_css required" 
			value="<x:out select="$xmlData/data/proposal/prp_funds" />" /></td>
	</tr>
</table>
		<div class="t_bar">申请资助依据条款</div>
<table width="100%" border="0" cellpadding="0" cellspacing="1">

	<tr>
		<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
			name="proposal/policy_foundation"><x:out
					select="$xmlData/data/proposal/policy_foundation" /></span>
		</td>
	</tr>
</table>
 <div class="t_bar">单位填列</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="orgInfo1" cellspacing="1">
	<tr>
		<td align="right" nowrap width="20%">企业所属地区：</td>
		<td width="30%">
		<input name="construction/area_name" label="企业所属地区" type="text" required class="input_css" maxlength="100" value="<x:out select="$xmlData/data/construction/area_name" />"/>
		</td>
		<td align="right" width="20%">组织机构代码：</td>
		<td width="30%">
		<input name="construction/org_no" label="组织机构代码" type="text" required class="input_css orgCard" maxlength="100" value="<x:out select="$xmlData/data/construction/org_no" /> "/>
		</td>
	</tr>
	<tr>
		<td align="right">营业执照注册号：</td>
		<td>
		<input name="construction/org_licence" label="营业执照注册号" type="text" required class="input_css " maxlength="100" value="<x:out select="$xmlData/data/construction/org_licence" />"/>
		</td>
		<td align="right">税务登记号：</td>
		<td>
		<input name="construction/tax_local_no" label="税务登记号" type="text" required class="input_css " maxlength="100" value="<x:out select="$xmlData/data/construction/tax_local_no" />"/>
		</td>
	</tr>
	<tr>
	        <td align="right">注册资本：</td>
            <td colspan="1" align="left">         
            <input name="construction/registe_fund" type="text"   size="8" label="注册资本"
	       value="<x:out select="$xmlData/data/construction/registe_fund" />" onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;"/>
	        &nbsp;万&nbsp;
	        <c:set var="registe_fund_money_value"><x:out select="$xmlData/data/construction/registe_fund_money_value" /></c:set>
	        <cpt:select id="registe_fund_money" key="money_type" value="${registe_fund_money_value}" onChange="initControlValue(this.id)"></cpt:select>
	        <input type="hidden" name="construction/registe_fund_money_value" value="${registe_fund_money_value }"  label="币种"/>
	      	<input type="hidden" name="construction/registe_fund_money_name" value="<x:out select="$xmlData/data/construction/registe_fund_money_name" />"/>
          </td>
          <td align="right">注册类型：</td>
          <td align="left" colspan="1" >
          	<c:set var="nature">{'id':'<x:out select="$xmlData/data/construction/nature_code" />','name':'<x:out select="$xmlData/data/construction/nature_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang " readonly="true" value="${nature}" label="注册类型"
          		id="nature" name="nature" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue"/>
	        <input id="nature_code" type="hidden" name="construction/nature_code"  label="注册类型" value="<x:out select="$xmlData/data/construction/nature_code" />"/>
            <input id="nature_name" type="hidden" name="construction/nature_name" value="<x:out select="$xmlData/data/construction/nature_name" />"/>
          </td>
	</tr>
      <tr >
          <td align="right">注册日期：</td>
          <td colspan="1" align="left">
          <c:set var="registe_date"><x:out select="$xmlData/data/construction/registe_date" /></c:set>
          <cpt:date id="registe_date" name="construction/registe_date" value="${registe_date}" className="hn_iuput_kuang date beforeToday" label="注册日期" ></cpt:date>
		<td align="right">行业类型：</td>
		<td>
		<input name="construction/belong_industry_name" label="行业类型" type="text" required class="input_css" maxlength="100" value="<x:out select="$xmlData/data/construction/belong_industry_name" />"/>
		</td>
	</tr>
    <tr >
            <td align="right">开户银行：</td>
            <td align="left"><input id="bank_name" class="input_css" maxlength="30" name="construction/bank_name" value="<x:out select='$xmlData/data/construction/bank_name' />" type="text"  label="开户银行"/></td>
          	<td align="right">银行信用等级：</td>
            <td align="left"><input id="credit_level" class="input_css" maxlength="30" name="construction/credit_level" value="<x:out select='$xmlData/data/construction/credit_level' />" type="text"  label="银行信用等级"/></td>
    </tr>
    <tr>
            <td align="right">开户户名：</td>
            <td align="left"><input id="bank_orgname" type="text" class="input_css" maxlength="30" name="construction/bank_orgname" value="<x:out select='$xmlData/data/construction/bank_orgname' />"  label="开户户名"/></td>
            <td align="right">银行账号：</td>
            <td align="left"><input id="bank_account" name="construction/bank_account" class="input_css" maxlength="30" type="text" value="<x:out select='$xmlData/data/construction/bank_account' />"  label="银行账号" /></td>
     </tr>
     <tr>
            <td align="right">单位负责人：</td>
            <td align="left"><input id="unit_leader" type="text" class="input_css" maxlength="30" name="construction/unit_leader" value="<x:out select='$xmlData/data/construction/unit_leader' />" label="单位负责人"/></td>
            <td align="right">联系电话：</td>
            <td align="left"><input id="tel_no" name="construction/tel_no" class="input_css"  maxlength="30" type="text" value="<x:out select='$xmlData/data/construction/tel_no' />"  label="联系电话" /></td>
     </tr>
</table>
<div class="t_bar">个人填列</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="orgInfo1" cellspacing="1">
	<tr>
		<td align="right" nowrap width="20%">所属单位：</td>
		<td width="30%">
		<input name="construction/be_unit" type="text" class="input_css" maxlength="30" value="<x:out select="$xmlData/data/construction/be_unit" />"/>
		</td>
		<td align="right" width="20%">单位负责人：</td>
		<td width="30%">
		<input name="construction/unit_leader2" type="text" class="input_css" maxlength="30" value="<x:out select="$xmlData/data/construction/unit_leader2" /> "/>
		</td>
	</tr>
	<tr>
		<td align="right">单位地址：</td>
		<td>
		<input name="construction/org_addr" type="text" class="input_css " maxlength="30" value="<x:out select="$xmlData/data/construction/org_addr" />"/>
		</td>
		<td align="right">得奖者姓名：</td>
		<td>
		<input name="construction/award_name" type="text" class="input_css " maxlength="30" value="<x:out select="$xmlData/data/construction/award_name" />"/>
		</td>
	</tr>
	<tr>
		<td align="right">学历：</td>
		<td>
		<input name="construction/education" type="text" class="input_css " maxlength="30" value="<x:out select="$xmlData/data/construction/education" />"/>
		</td>
		<td align="right">联系电话：</td>
		<td>
		<input name="construction/personal_tel" type="text" class="input_css " maxlength="30" value="<x:out select="$xmlData/data/construction/personal_tel" />"/>
		</td>
	</tr>
	<tr>
		<td align="right">职务：</td>
		<td>
		<input name="construction/post" type="text" class="input_css " maxlength="30" value="<x:out select="$xmlData/data/construction/post" />"/>
		</td>
		<td align="right">职称：</td>
		<td>
		<input name="construction/position" type="text" class="input_css " maxlength="30" value="<x:out select="$xmlData/data/construction/position" />"/>
		</td>
	</tr>
</table>

<table class="t_css" width="100%" border="0" cellpadding="0" id="content_prp" cellspacing="1">
      <tr class="li_1">
          <td align="left"><span class="color_red">*</span><strong>获奖事迹：</strong>（重点突出、简单扼要，控制在500字以内）</td>
      </tr>
      <tr class="li_2">
          <td>
			<textarea style="resize:none" rows="5" cols="125" class="input_textarea required  maxlength:500"   name='proposal/goal/summary1'  label="获奖事迹"><x:out select="$xmlData/data/proposal/goal/summary1"/></textarea>
		   <input type='hidden' name='proposal/goal/summary1_hidden' id='proposal/goal/summary1_hidden' value=''>
		  </td>
      </tr>
    </table>
    
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="8">人员信息</td>
		
	</tr>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>
<script type="text/javascript">
	
	/**
	* 选择树设置隐藏域值 public.js中原函数不适用
	*/
	function initTreeValue(treeId, treeNode) {
	  	//针对单位性质
	  	if ((treeId == "nature" && treeNode && treeNode.isParent)) {
			scmWarn("请选择具体的"+$("#" + treeId).attr("label"));
				$("#" + treeId).val("");
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val("");
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val("");
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val("");
				return false;
		}
		//if (!(treeNode && treeNode.level > 0)) {
		if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
			scmWarn($("#" + treeId).attr("label")
					+ messageTip.researchAreaInvalidDisciplineCode);
			if (treeNode.level == 0) {
				$("#" + treeId).val("");
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val("");
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val("");
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val("");
			}
			return false;
			}
			var str = treeNode.name;
			var obj = treeNode.parentNode;
			while (obj != null) {
				//str = obj.name + "-" + str;
				obj = obj.parentNode;
			}
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
		}
	
</script>


